/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 段落样式优化 */
p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

/* 面试结果页面文字样式增强 */
.analysis-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.strength-item span, .improvement-item span {
    font-size: 1.02rem;
    line-height: 1.6;
}

.qa-section p {
    padding: 0.5rem 0;
    line-height: 1.7;
}

/* 自定义颜色变量 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

.navbar-nav .nav-item.active .nav-link {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.card-body {
    padding: 2rem;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1.25rem;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* 登录/注册页面特定样式 */
.login-container, .register-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 首页样式 */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.jumbotron h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.feature-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* 面试聊天页面样式 */
.question-card {
    background-color: #f8f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.answer-textarea {
    border-radius: 8px;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
}

.answer-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 面试结果页面样式 */
.score-display {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--info-color) 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    text-align: center;
    margin: 2rem 0;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.score-display h4 {
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.analysis-section {
    margin: 2rem 0;
}

/* 优势和改进点 */
.strength-item, .improvement-item {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.strength-item {
    background-color: #e6f7ff;
    border-left: 4px solid var(--info-color);
}

.improvement-item {
    background-color: #fff7e6;
    border-left: 4px solid var(--warning-color);
}

.strength-item:hover, .improvement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 总体建议区域样式优化 */
.analysis-section .bg-light {
    padding: 1.5rem !important;
    border-radius: 12px !important;
    background-color: #f8f9ff !important;
    border: 1px solid #e3e8f0 !important;
}

.qa-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.qa-item:hover {
    background-color: rgba(0, 123, 255, 0.02);
}

.qa-item:last-child {
    border-bottom: none;
}

.question-block h6, .answer-block h6 {
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.question-block p {
    color: #444;
    font-weight: 450;
}

.answer-block p {
    color: #555;
    font-style: normal;
}

/* 面试历史页面样式 */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.table tr:hover {
    background-color: #f8f9ff;
}

.score-badge {
    border-radius: 16px;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
}

/* 简历分析页面样式 */
.resume-analysis-section {
    margin: 2rem 0;
}

.resume-section {
    background-color: #f8f9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.resume-analysis-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #e3e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.resume-analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.analysis-highlight {
    background-color: rgba(0, 123, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 简历评分显示 */
.resume-score-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.15);
}

.resume-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.resume-overall-rating {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.resume-rating-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 简历分析项目样式 */
.resume-strength-list, .resume-improvement-list {
    list-style-type: none;
    padding-left: 0;
}

.resume-strength-item, .resume-improvement-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.resume-strength-item {
    background-color: #e6f7ff;
    border-left: 3px solid var(--info-color);
}

.resume-improvement-item {
    background-color: #fff7e6;
    border-left: 3px solid var(--warning-color);
}

.resume-strength-item:hover {
    background-color: #d4f2ff;
    transform: translateX(5px);
}

.resume-improvement-item:hover {
    background-color: #fff0cc;
    transform: translateX(5px);
}

.resume-analysis-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.resume-strength-item .resume-analysis-icon {
    color: var(--info-color);
}

.resume-improvement-item .resume-analysis-icon {
    color: var(--warning-color);
}

/* 简历建议区域 */
.resume-suggestions-section {
    background-color: #f0f4ff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.resume-suggestion-item {
    border-bottom: 1px solid #e3e8f0;
    padding: 0.75rem 0;
}

.resume-suggestion-item:last-child {
    border-bottom: none;
}

.resume-suggestion-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

/* 格式优化建议 */
.format-suggestions-section {
    background-color: #f9f9ff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid #e3e8f0;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
    opacity: 1;
    transform: translateY(0);
}

/* 文本选择样式 */
::selection {
    background-color: rgba(0, 123, 255, 0.2);
    color: #333;
}

/* 焦点样式 */
:focus {
    outline: 2px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .jumbotron {
        padding: 2rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .jumbotron {
        padding: 1.5rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}